<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" />
<xsl:template match="Schema">using System;

namespace <xsl:value-of select="@NameSpace" />
{
<xsl:for-each select="DicType[@EnumName!='']">	/// &lt;summary&gt;
	/// <xsl:value-of select="@Memo" />
	/// &lt;/summary&gt;
	public enum <xsl:value-of select="@EnumName" /> : short
	{
		<xsl:for-each select="Dic[@EnumName!='']">/// &lt;summary&gt;
		/// <xsl:value-of select="@DisplayName" /><xsl:if test="@Memo!=''">：</xsl:if><xsl:value-of select="@Memo" />
		/// &lt;/summary&gt;
		<xsl:value-of select="@EnumName" /> = <xsl:value-of select="@DictionaryValue" />
		<xsl:if test="position()!=last()">,
		</xsl:if></xsl:for-each>
	}
</xsl:for-each>
}</xsl:template>
</xsl:stylesheet>